package controllers.commands
{
	import controllers.commands.base.ICommand;
	import controllers.managers.SingletonManager;
	import controllers.managers.StateManager;
	
	import model.states.MaperState;
	
	public class ExitElectricBudryCommand implements ICommand
	{
		public function ExitElectricBudryCommand()
		{
		}
		
		public function setContext(context:Object):void
		{
		}
		
		public function execute():void
		{
			/*如果是当前状态是电子围栏，则屏蔽鼠标冒泡事件*/
			var mgr:StateManager = StateManager(SingletonManager.getServ(StateManager.NAME));
			mgr.setState(MaperState.COMMON_MAP_OPERATE);
		}
	}
}